package com.pci.netty.enums;

/**
 * 应答码枚举
 */
public enum ReplyCodeEnum {
    SUCCESS((byte) 0, "成功"),
    DATA_ERROR((byte) 1, "报文格式错误"),
    REPETITION((byte) 2, "重复应答"),
    UNREACHABLE((byte) 3, "目标结点不可达"),
    TIMEOUT((byte) 4, "通讯超时");


    ReplyCodeEnum(byte code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    private byte code;
    private String describe;

    public byte getCode() {
        return code;
    }
}
